package com.fourth.shopping.service.impl;


import com.fourth.shopping.entity.Cart;
import com.fourth.shopping.mapper.CartMapper;
import com.fourth.shopping.service.CartService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;


@Service
public class CartServiceImpl implements CartService {
    @Resource
    CartMapper cartMapper;

    @Override
    public List<Cart> getAllCart(String userId) {
        List<Cart> cartDate = cartMapper.getCartDate(userId);
        return cartDate;
    }
}
